package com.br.aiops.alert.config.db;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="log_alert_receiver_group_users")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
public class ReceiverGroupUsersDTO {

    @Id
    @Column(name="id")
    private String id;

    @Column(name="group_id")
    private Long groupId;

    @Column(name="rule_id", updatable = false, insertable = false)
    private String ruleId;

    /**
     * 与微信账号相同
     */
    @Column(name="cas_id")
    private String casId;

    @Column(name="phone")
    private String phone;

    @Column(name="email")
    private String email;

    @Column(name="owner")
    private String owner;
}
